/*引入初始化代码*/
@import "util.less";

body {
    font-size: 14px;
    background-color: #f2f2f2;
}

#header {
    position: fixed;
    z-index: 999;
    background-color: #fff;
    top: 0;
    width: 100%;
    display: flex;
    padding: 9px 10px;
    height: 44px;
    border-bottom: 1px solid @borderColor;
    .logo {
        width: 84px;
        line-height: 44px;
    }
    .search {
        flex: 1;
        position: relative;
        margin: 0px 10px 0px 20px;
        .fa-search {
            position: absolute;
            top: 6px;
            left: 6px;
            color: #c8c8c8;;
        }
        input {
            height: 26px;
            background-color: #f9f9f9;
            border-radius: 15px;
            width: 100%;
            padding-left: 25px;
        }
    }
    .download {
        width: 38px;
        height: 22px;
        border: 1px solid #f04848;
        border-radius: 11px;
        color: @mainColor;
        text-align: center;
        line-height: 20px;
        font-size: 12px;   
    }
}

#nav {
    position: fixed;
    z-index: 999;
    background-color: #fff;
    border-bottom: 1px solid @borderColor;
    top: 44px;
    width: 100%;
    overflow: hidden;
    .swiper-wrapper {
        .swiper-slide {
            width: auto;
            li {
                float: left;
                &.active {
                    a {
                        color: @mainColor;
                        position: relative;
                        &::before {
                            position: absolute;
                            content: "";
                            width: 25px;
                            height: 4px;
                            background-color: @mainColor;
                            bottom: 0px;
                            left: 50%;
                            transform: translateX(-50%);
                        }
                    }
                }
                a {
                    display: block;
                    line-height: 40px;
                    padding: 0 12px;
                    color: @aColor;
                    font-size: 15px;
                    font-weight: bold;
                }

            }
        }
    }
}

#main {
    margin: 84px auto 0;
    padding: 5px 20px;
    max-width: 960px;
    background-color: #fff;

    .productInfo {
        color: #5a5a5a;
        font-size: 15px;
        .title {
            line-height: 30px;
        }
        .other {
            font-size: 12px;
            color: @aColor;
            padding: 10px 0px;
        }
        .description {
            padding: 10px 0px;
            img {
                float: right;
                width: 120px;
            }
        }
        .bigImg {
            width: 100%;
            padding: 10px 0px;
            img {
                width: 100%;
            }
        }
    }

    .buy {
        padding: 10px 20px;
        width: 100%;
        .tobuy {
            display: block;
            width: 100%;
            background-color: @mainColor;
            border-radius: 5px;
            line-height: 35px;
            color: #fff;
            text-align: center;
            font-size: 20px;
        }
        .repertory {
            margin: 10px auto;
            width: 150px;
            border: 1px solid @footBorder;
            display: none;
            >p {
                font-size: 18px;
                line-height: 45px;
                text-align: center;
                font-weight: bold;
                color: @mainColor;
            }
            #disstorck {
                li {
                    padding: 0 8px;
                    a {
                        display: block;
                        border-bottom: 1px dotted @footBorder;
                        padding: 0 8px;
                    }
                    span {
                        line-height: 20px;
                        height: 20px;
                        color: #000;
                        strong {
                            float: right;
                            color: @mainColor;
                        }
    
                    }
                }
            }

        }
    }

    .focus {
        max-width: 400px;
        margin: 0 auto;
        padding: 10px;
        display: flex;
        border: 1px solid #f00;
        position: relative;
        i {
            position: absolute;
            width: 20px;
            height: 20px;
            border:  3px solid #f00;
            &:nth-child(1){
                border-bottom: none;
                border-right: none;
                top: -3px;
                left: -3px;
            }
            &:nth-child(2){
                border-bottom: none;
                border-left: none;
                top: -3px;
                right: -3px;
            }
            &:nth-child(3){
                border-top: none;
                border-right: none;
                bottom: -3px;
                left: -3px;
            }
            &:nth-child(4){
                border-top: none;
                border-left: none;
                bottom: -3px;
                right: -3px;
            }
           

        }

        .message{
            width: 70%;
            float: left;
            .content{
                p {
                    font-size: 13px;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                }
            }
            .mmbuy {
                margin-top: 20px;
                a {
                    display: block;
                    font-size: 12px;
                    background-color: #f00;
                    color: #fff;
                    margin: 0 auto;
                    width: 90%;
                    height: 20px;
                    line-height: 20px;
                    text-align: center;
                    border-radius: 10px;
                }
            }
        }

        .QRcode {
            width: 30%;
            img {
                width: 100%;
            }

        }
    }

    .comments {
        padding: 20px 0px;
        .tit {
            line-height: 30px;
        }
        .reply {
            width: 100%;
            border: 1px solid @footBorder;
            .form {
                position: relative;
                textarea {
                    width: 100%;
                    resize: none;
                    height: 100px;
                }
                .ctrl {
                    position: absolute;
                    width: 100%;
                    bottom: 0px;
                    background-color: #efefef;
                    border: 1px solid @footBorder;
                    border-top-color:@borderColor;
                    .tjdp {
                        background-color: @mainColor;
                        float: right;
                        padding: 0px 10px;
                        line-height: 30px;
                        color: #fff;
                    }

                }
            }
        }
        .list {
            margin-top: 10px;
            ul {
                li {
                    padding: 5px 0;
                    border-bottom: 1px dotted @borderColor;
                    .userimg {
                       float: left;
                        img {
                            width: 50px;
                            border-radius: 50%;
                        }
                    }
                    .con {
                        margin-left: 60px;
                        .name {
                            height: 20px;
                            .username{
                                float: left;
                                color: deepskyblue;
                            }
                            .time {
                                float: right;
                                color: #ccc;
                            }
                          
                        }
                        .content {
                            color: @aColor;
                            font-size: 16px;
                            min-height: 30px;
                            line-height: 20px;
                        }
                    }
                }
            }
        }

    }

}

#footer {
    background-color: #efefef;
    .footerTop {
        .location {
            padding-left: 10px;
            line-height: 38px;
            background-image: linear-gradient(to bottom,(#fff),#efefef);
            border-top: 1px solid @footBorder;
            border-bottom: 1px solid @footBorder;
            a {
                color: #000;
            }
        }
        .navside {
            margin-top :25px;
            border-top: 1px solid @footBorder;
            border-bottom: 1px solid @footBorder;
            display: flex;
            justify-content: space-around;
            a {
                color: #000;
                line-height: 34px;
                text-align: center;
            }
            a:nth-child(n+2){
                border-left: 1px solid @footBorder;
            }
            .login {
                width: 30%;
    
            }
            .register {
                width: 30%;
    
            }
            .toTop {
                width: 40%;
                i {
                    color: @aColor;
                    font-size: 20px;
                }
            }
        }
    }
    .footerBottom {
        padding: 15px 0px;
        text-align: center;
        line-height: 16px;
        color: @aColor;
        font-size: 12px;
        .down {
            color: red;
        }
        .mmbuyWeb {
            color: #000;
        }  
    }
}